<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户界面</title>
    <link rel="stylesheet" th:href="@{/static/css/bootstrap.min.css}">
    <link rel="stylesheet" th:href="@{/static/css/bootstrap-theme.min.css}">
    <link rel="stylesheet" th:href="@{/static/css/mycss.css}">

    <script th:src="@{/static/js/jquery.min.js}"></script>
    <script th:src="@{/static/js/bootstrap.min.js}"></script>
    <style>
        html, body {
            position: absolute;
            width: 100%;
            height: 100%;
        }
    </style>
    <script type="text/javascript">
        $(function () {
            $("#Sidebar > li").click(function () {
                var seletedELement = $(this);
                if (undefined === seletedELement.attr("class")) {
                    $("#Sidebar > li").removeAttr("class");
                    seletedELement.attr("class", "active");
                }
            })
        })
    </script>
</head>
<body>
<!--添加导航栏-->
<div th:insert="navigation :: Nav" style="margin-bottom: 0;"></div>

<div class="row full" style="margin: 0" th:if="${user.post == 1}">

        <!--是管理人员,显示对应的界面-->
        <div class="col-lg-1 col-md-12 col-sm-12 col-xs-12 userside">
            <div th:insert="./managers/sidebar:: Side"></div>
        </div>

        <div class="col-lg-11 col-md-12 col-sm-12 col-xs-12 usercontent">
            <iframe name="contentpanel" th:src="@{/Warehouse}" class="useriframe">

            </iframe>
        </div>

</div>

<div class="row full" style="margin: 0" th:if="${user.post == 2}">
        <!--是运营人员,显示对应的界面-->
        <div class="col-lg-1 col-md-12 col-sm-12 col-xs-12 userside">
            <div th:insert="./operations/sidebar:: Side"></div>
        </div>

        <div class="col-lg-11 col-md-12 col-sm-12 col-xs-12 usercontent">
            <iframe name="contentpanel" th:src="@{/baiduMap}" class="useriframe">

            </iframe>
        </div>

</div>

</body>
</html>